package com.atguigu.gmall.service.impl;

import com.atguigu.gmall.bean.UserAddress;
import com.atguigu.gmall.service.OrderService;
import com.atguigu.gmall.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yhl
 * @create 2021-08-10 10:15
 */
@Service
public class OrderServiceImpl implements OrderService {


    @Autowired
    UserService userService;

    @Override
    public UserAddress initOrder(String userId) {
        //1、查询用户的收货地址
        UserAddress userAddress = userService.getUserAddressList(userId);

        System.out.println(userAddress.getUserAddress());

        return userAddress;

    }
}
